<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<div id="main_task_div" class="easyui-layout" fit="true">

    <div region="center" style="padding:0px;border:0px">
        <t:datagrid name="main_task_List" title="集团用户电费查询任务" actionUrl="groupPRController.do?toDoTaskGrid" idField="id" treegrid="false" pagination="true"  sortOrder="asc" sortName="id" onLoadSuccess="">
            <t:dgCol title="任务编号" field="id"  width="80"></t:dgCol>
            <t:dgCol title="查询日期" field="queryDate" width="80"></t:dgCol>
            <t:dgCol title="集团用户数" field="groupNum" width="60" ></t:dgCol>
            <t:dgCol title="状态" field="stateDesc" width="80"></t:dgCol>
            <t:dgCol title="生成方式" field="createMode" width="80"></t:dgCol>
            <t:dgCol title="生成时间" field="createDatetime" width="100" formatter="yyyy.MM.dd hh:mm:ss"></t:dgCol>
			<t:dgCol title="common.operation" field="opt" width="80"></t:dgCol>
            <t:dgFunOpt funname="taskShow(id)" title="任务明细"></t:dgFunOpt>
            <t:dgFunOpt funname="ExportXls(id)" title="导出"></t:dgFunOpt>
            <t:dgDelOpt url="groupPRController.do?delTask&id={id}" title="删除"></t:dgDelOpt>
            <t:dgToolBar title="生成查询任务"  icon="icon-add" url="groupPRController.do?goCreateTask" funname="add" height="150" width="400"></t:dgToolBar>
        </t:datagrid>
    </div>
</div>

 
<script type="text/javascript">
   
    function taskShow(id){

    	createdetailwindow("任务明细","groupPRController.do?goTaskGroupList&id="+id,1050,600) 
    
    }
    
	//导出
	function ExportXls(id) {
	
		JeecgExcelExport("groupPRController.do?exportXls&task_id="+id, "main_task_List");
	}


</script>
